<?php
	class AjaxPage extends Page {
		public function getPage(){
			$pinfo="共 <b>{$this->total}</b> 条记录,本页显示 {$this->start}-{$this->end} 条&nbsp;&nbsp;&nbsp;&nbsp;{$this->page}/{$this->pageNum}&nbsp;&nbsp;&nbsp;&nbsp;";
			if ($this->page==1) 
				$pinfo.=$this->first.'&nbsp;&nbsp';
			else 
				$pinfo.='<a href="javascript:imglist(\''.$this->url.'page=1\')">'.$this->first.'</a>&nbsp;&nbsp;';
			

			if ($this->prevPage)
				$pinfo.='<a href="javascript:imglist(\''.$this->url.'page='.$this->prevPage.'\')">'.$this->prev.'</a>&nbsp;&nbsp;';
			else 
				$pinfo.=$this->prev.'&nbsp;&nbsp;';
						
			if ($this->nextPage)	
				$pinfo.='<a href="javascript:imglist(\''.$this->url.'page='.$this->nextPage.'\')">'.$this->next.'</a>&nbsp;&nbsp;';
			else
				$pinfo.=$this->next.'&nbsp;&nbsp;';
				
			if ($this->page==$this->pageNum)
				$pinfo.=$this->last.'&nbsp;&nbsp;';
			else 
				$pinfo.='<a href="javascript:imglist(\''.$this->url.'page='.$this->pageNum.'\')">'.$this->last.'</a>&nbsp;&nbsp;';

			return $pinfo;
		}	
	}
?>
